import request from "../utils/request";

// 登录
export const loginAPI=(params)=>{
  return request({
    url:'/login',
    method:'post',
    data:params
  })
}

//注册
export const registAPI=(params)=>{
  return request({
    url:'/regist',
    method:'post',
    data:params
  })
}

/**
 * 获取验证码图片 URL
 */
export const getCaptchaAPI = () => {
  // return `/getCaptcha?timestamp=${new Date().getTime()}`;
  return request({
    url:'/getCaptcha',
    method:'get',
    
  })
};
